﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<BolsaWeb.Dominio.Postulante>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Postulantes registrados
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.EnableClientValidation(); %>

    <h2>Postulantes</h2>
    <table>
    <tr>
     <th>Nombre</th>
     <th>Sexo</th>
     <th>Fec Nac</th>
    </tr>
   <% foreach(var item in Model) { %> 
    <tr>
     <td><%=item.Nombres%> <%=item.ApellidoPaterno %> <%=item.ApellidoMaterno%></td>
     <td><%= item.Sexo  %></td>
     <td><%= item.FechaNacimiento.ToShortDateString()  %></td>
    </tr>
    <% } %>
    </table>
  <p>
     <% if (ViewData["RolPostulante"] == null) {%>
        <%= Html.ActionLink("Nuevo", "Create")%>
      <%}else{%>
      <%= Html.ActionLink("Editar mi perfil", "Edit", new { id = ViewData["RolPostulante"] })%>
      <%} %>
    </p>
</asp:Content>
